import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class PreviewAssessTypecopyService {
  private serviceUrls: any = {
    getModelEvalListUrl: '/recycle/model/modelEvalList', // 机型估价列表
    getModelListUrl: '/recycleModel/list' // 机型配置列表
  }

  constructor(public httpClient: HttpClient) { }

  // 查询机型估价列表
  getModelEvalLisData(params: any): Promise<any> {
    return this.httpClient.post(this.serviceUrls.getModelEvalListUrl, params).toPromise();
  }

  // 查询机型配置列表(注：仅验机页面使用--编辑查看)
  getEditModelList(objs: any) {
    let params = {
      page: 1,
      pageSize: 999999,
      ...objs
    }
    return this.httpClient.post(this.serviceUrls.getModelListUrl, params).toPromise();
  }
}
